FROM python:3.7
RUN pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/\
    && pip config set install.trusted-host mirrors.aliyun.com\
    && pip install sanic requests pymysql redis aiomysql aioredis
EXPOSE 8000
CMD python /var/www/mian_sanic.py
